<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JSP隐式对象</title>
</head>
<body>
	<%
		String username = request.getParameter("username");	
		String password = request.getParameter("password");
	%>
	
	<div>
	 用户名：<%= username %>
	</div>
	<div>
	 密码：<%= password %>
	</div>
	
	
	<!-- 设置和获取session -->
	<%
		session.setAttribute("stuId", "20241016001");
		String stuId= (String)session.getAttribute("stuId");
		
	%>
	<div>
		从session获取的属性，学号:<%= stuId %>
	</div>
	
	


</body>
</html>